package com.piao.mayflyblog.dao;

import com.piao.mayflyblog.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;

//泛型dao操作的对象和主键类型
public interface UserRepository extends JpaRepository<User,Long> {
    User findByUsernameAndPassword(String username,String password);
}
